/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __BSP_UART_H
#define __BSP_UART_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
 void bsp_uart_init();
 void uart_begin(int32_t uartns_id, uint32_t b);
 void uart_flush(int32_t uartns_id);
 ///* Empty implementations of Stream virtual methods */
 uint32_t uart_available(int32_t uartns_id);
 uint32_t uart_txspace(int32_t uartns_id);
 uint32_t uart_read(int32_t uartns_id, uint8_t *buffer, uint32_t size);
 //
 ///* Empty implementations of Print virtual methods */
 uint32_t uart_write(int32_t uartns_id,const uint8_t *buffer, uint32_t size);
#ifdef __cplusplus
}
#endif

#endif /* __BSP_H */

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
